<fieldset id="sf_fieldset_post" class="">
<div class="form-row">
<dl>

  <?php foreach ($languages as $language): ?>
  
  <?php $post_i18n = PostI18nPeer::retrieveByPk($post->getId(), $language->getCulture()); ?>
    
    <?php if($post_i18n instanceof PostI18n): ?> 
  <dt><?php echo $language->getName(); ?></dt>
  <dd>
      <div class="form_row">  
      <dl>
      <dt><?php echo __('Title'); ?></dt>
      <dd>
        <?php echo input_hidden_tag('post[i18n]['.$post_i18n->getCulture().'][id]', $post_i18n->getId()); ?>
        <?php echo input_tag('post[i18n]['.$post_i18n->getCulture().'][title]', $post_i18n->getTitle(), array ('size' => 80,)); ?>
      </dd>
      <dt><?php echo __('Content'); ?></dt>      
      <dd><?php echo textarea_tag('post[i18n]['.$post_i18n->getCulture().'][content]', $post_i18n->getContent(), array ('size' => '70x3', 'rich' => true)); ?></dd>
      </dl>
      </div>
  </dd>
    <?php else: ?>
  <dt><?php echo $language->getName(); ?></dt>
  <dd>  
      <div class="form_row">  
      <dl>
      <dt><?php echo __('Title'); ?></dt>
      <dd>
        <?php echo input_tag('post[i18n]['.$language->getCulture().'][title]', '', array ('size' => 80,)); ?>
      </dd>      
      <dt><?php echo __('Content'); ?></dt>      
      <dd><?php echo textarea_tag('post[i18n]['.$language->getCulture().'][content]', '', array ('size' => '70x3', 'rich' => true)); ?></dd>
      </dl>
      </div>
  </dd>
    <?php endif; ?>
  <?php endforeach; ?>
  
  </dd>
</dl>
</div>
</fieldset>

